package com.shtel.paas.monitorcenter.config.management.whiteListConfig.service;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.github.pagehelper.PageInfo;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListEntity;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListHostIdDto;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListResponseDto;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListRulesDto;

@Repository
public interface IWhiteListService {

	PageInfo<WhiteListResponseDto> selectAll(String hostId,String ruleId, Integer page, Integer pageSize);
	
	List<WhiteListHostIdDto> selectHostId();
	
	List<WhiteListRulesDto> selectRules();
	
	int insertWhiteList(String host, String rules);
	
	/**
	 * 删除白名单配置抽象方法
	 * @param:  主键id
	 * @author: zhangyy
	 * @Date:   2018.05.16
	 * @return: boolean 
	 */
	public boolean  delectWhiteList(String id);
}
